package com.icss.day05;

@Check(value="hello wold")
public class Student {

    private int sno;

    private String sname;

    @Check(value="范围不对", min = 10, max = 20)
    private int age;

    public Student() {
    }

    public Student(int sno, String sname, int age) {
        this.sno = sno;
        this.sname = sname;
        this.age = age;
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }
}
